package TP3;

import VAMP.*;

public class LutNormale extends Thread implements vAlgo{
	private VAMP v;

	LutNormale(VAMP v){
		this.v=v;
		super.start();
	}

	public synchronized void run(){
		while(true){
			//Lut croissante normale
			v.AtTheBegining(this);
			v.AddLog("\t------------------------------");
			v.AddLog("\t| NGris, Lut croissante normale");

			for(int i=0; i<256; i++)
				Tp3.pal1[i]= new vColor(i, i, i);

			// application palette pal1
			v.DrawImage(Tp3.img1, Tp3.pal1);
			v.AddLog("\t| Affichage avec la lut croissante");
			v.AddLog("\t------------------------------");
			v.Pause(this);
		}
	}
}
